package com.freewater.springboot.demo.ioc.beanmethodinheritance;

import lombok.ToString;

@ToString
public class BeanC {

    private BeanA beanA;
    private BeanB beanB;

    public BeanC(BeanA beanA) {
        this.beanA = beanA;
    }

    public BeanC(BeanB beanB) {
        this.beanB = beanB;
    }

    public BeanC(BeanA beanA, BeanB beanB) {
        this.beanA = beanA;
        this.beanB = beanB;
    }
}
